<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title>业务表单</title>
    <%@include file="/common/header.jspf"%>
</head>
<body>
<div class="menu-right" style="">
    <a class="button icon-save" id="btn_save">
        保存
    </a>
   <%-- <a class="button icon-export">
        返回
    </a>--%>
</div>
<form id="form1" method="post">
    <input name="id" value="${informationRegistration.id}" hidden/>
    <div class="information">
        <div class="information-title">
            <p>基本信息</p>
            <a class="panel-down" href="javascript:void(0)">                 <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>             </a>
        </div>
        <div class="cuttle" style="height: 120px;">
            <div style="clear: both">
                <div class="form_one" style="width: 1100px;">
                    <label class="lable-style">装置/部位编码:</label>
                    <input id="devicePartCode" class="easyui-textbox" required="true" name="devicePartCode" value="${informationRegistration.devicePartCode}" style="width: 965px">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 550px">
                    <label class="lable-style">装置/部位名称:</label>
                    <input id="devicePartName" class="easyui-textbox" required="true" validType="validSelect" name="devicePartName" value="${informationRegistration.devicePartName}" style="width: 415px" editable="false" >
                    <span>*</span>
                </div>
                <div class="form_one" style="width:550px">
                    <label class="lable-style">联系承包人:</label>
                    <input id="contactContractor" name="contactContractor" value="${informationRegistration.contactContractor}" hidden/>
                    <input id="contactContractorName" class="easyui-textbox" required="true" validType="validSelect" name="contactContractorName"  value="${informationRegistration.contactContractorName}" style="width: 415px">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 550px">
                    <label class="lable-style">有效开始时间:</label>
                    <input id="beginTime" class="easyui-datebox" name="beginTime" value="${informationRegistration.beginTime}" required="true" validType="validSelect" style="width: 415px">
                    <span>*</span>
                </div>
                <div class="form_one" style="width: 550px">
                    <label class="lable-style">有效截止时间:</label>
                    <input id="endTime" name="endTime" value="${informationRegistration.endTime}" class="easyui-datebox" required="true" validType="validSelect" style="width: 415px">
                    <span>*</span>
                </div>
            </div>
            <div style="clear: both">
                <div class="form_one" style="width: 550px">
                    <label class="lable-style">级别:</label>
                    <select id="level" class="easyui-combobox" name="level" required="true" validType="validSelect"  style="width: 415px">
                        <option></option>
                        <option value="一级" <c:if test="${informationRegistration.level=='一级'}">selected</c:if>>一级</option>
                        <option value="二级" <c:if test="${informationRegistration.level=='二级'}">selected</c:if>>二级</option>
                        <option value="三级" <c:if test="${informationRegistration.level=='三级'}">selected</c:if>>三级</option>
                    </select>
                    <span>*</span>
                </div>
                <div class="form_one" style="width: 550px">
                    <label class="lable-style">装置部位所在单位:</label>
                    <input id="belongsUnit" name="belongsUnit" value="${informationRegistration.belongsUnit}" class="easyui-textbox" required="true" validType="validSelect"  style="width: 415px">
                    <span>*</span>
                </div>

            </div>
        </div>
    </div>
    <div class="information">
        <div class="information-title">
            <p>附件</p>
            <a class="panel-down" href="javascript:void(0)">                 <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>             </a>
        </div>
        <accessory:accessorySimple permission="write"  packageKey="ifrt" uploadUserId="${uploadUserId}" packageInfos="${accessoryList}"  accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
    </div>
    <div class="information">
        <div class="information-title">
            <p>承包记录</p>
            <a class="panel-down" href="javascript:void(0)">                 <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>             </a>
        </div>
        <div class="enclosure" style="height:300px; " >
            <table id="precautionList">
            </table>
            <div id="tb">
                <a id="btn_precaution_add" href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-plus fa-lg" style="margin:5px;">添加</a>
            </div>
        </div>
    </div>
    <div class="information" style="height: 200px;">
        <div class="information-title">
            <p>登记人</p>
            <a class="panel-down" href="javascript:void(0)">                 <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>             </a>
        </div>
        <div class="cuttle" style="height: 220px;">
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">登记人:</label>
                    <input name="addUserId" value="${informationRegistration.addUserId}" hidden/>
                    <input class="easyui-textbox" style="width: 240px;" value="${informationRegistration.addUserName}" editable="false">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">登记部门:</label>
                    <input name = "addDeptId" value="${informationRegistration.addDeptId}" hidden/>
                    <input  value="${informationRegistration.addDeptName}" class="easyui-textbox" editable="false" style="width: 240px;">
                    <span>*</span>
                </div>
                <div class="form_one">
                    <label class="lable-style">登记时间:</label>
                    <input name = "addTime" value="${informationRegistration.addTime}" class="easyui-textbox" editable="false" style="width: 240px;">
                    <span>*</span>
                </div>
            </div>
        </div>
    </div>



</form>
<script src="${ctx}/resources/js/majorHazard/informationRegistration/edit.js" type="text/javascript"></script>
</body>
</html>
